package io.gitee.hchaojie.day01;

import java.util.Arrays;
import java.util.Scanner;

public class DemoScanner {
    public static void main(String[] args) {
        System.out.println(Arrays.toString(args));

        Scanner scanner = new Scanner(System.in);
        
//        String str = scanner.nextLine();
//        System.out.println("请输入年龄：");
//        int i = scanner.nextInt();
//        int j = scanner.nextInt();
//        int k = scanner.nextInt();

        while (scanner.hasNextLine()) {
            String str = scanner.nextLine();
            System.out.println(str);

            if (str.length() == 0) {
                break;
            }
        }

        scanner.close();
        
        //System.out.println(i + " " + j + " " + k);
    }
}
